package com.juxuan.knowledge.util;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Data
@Slf4j
public class CommonResult<T> {
    private String code = "0000";
    private String message = "成功";
    private T Data;
 
    public CommonResult() {
    }
 
    public CommonResult(T data) {
        Data = data;
    }
 

    public CommonResult(String code, String message, T data) {
        this.code  = code;
        this.message = message;
        this.Data = data;
    }

 }
